package com.freesky.biz.citic.domain;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.*;
import com.alibaba.excel.enums.poi.BorderStyleEnum;
import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
import com.alibaba.excel.enums.poi.VerticalAlignmentEnum;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.util.HashMap;
import java.util.Map;

@Data
@ContentRowHeight(22)
@ColumnWidth(25)
@HeadRowHeight(25)
@HeadStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER,
        verticalAlignment = VerticalAlignmentEnum.CENTER,
        borderLeft= BorderStyleEnum.THIN,
        borderRight= BorderStyleEnum.THIN,
        borderTop= BorderStyleEnum.THIN,
        borderBottom= BorderStyleEnum.THIN)//表头样式
@ContentStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER,
        verticalAlignment = VerticalAlignmentEnum.CENTER,
        borderLeft= BorderStyleEnum.THIN,
        borderRight= BorderStyleEnum.THIN,
        borderTop= BorderStyleEnum.THIN,
        borderBottom= BorderStyleEnum.THIN)
public class TCiticNew implements java.io.Serializable {
    private static final long serialVersionUID = 1L;

    public TCiticNew(){}

    @ExcelProperty("记录ID")
    private String id;

    @ExcelProperty("客户编号")
    private String custId;

    @ExcelProperty("券类型")
    private String type;

    @ExcelProperty("档位")
    private String busiType;

    @ExcelProperty("券面额")
    private String amt;

    @ExcelProperty("支付金额")
    private String payAmt;

    @ExcelIgnore
    private String favourFlag;

    @ExcelProperty("手机号码")
    private String mobile;

    @ExcelProperty("openId")
    private String openId;

    @ExcelIgnore
    private String activityId;

    @ExcelProperty("支付状态")
    private String payStatus;

    @ExcelProperty("是否退款")
    private String refundFlag;

    @ExcelProperty("退款订单号")
    private String refundNo;

    @ExcelProperty("领取时间")
    private String createDate;

    @ExcelProperty("支付订单号")
    private String orderNo;

    @ExcelProperty("交易单号")
    private String tranNo;

    @ExcelIgnore
    private String status;

    @ExcelProperty("充值凭证")
    private String rechargeId;

    @ExcelIgnore
    private String respCode;


    @ExcelIgnore
    private String state;

    @ExcelProperty("充值渠道")
    private String channel;

    @ExcelIgnore
    private String lastReqId;

    @ExcelIgnore
    private int sendTimes;

    @ExcelProperty("处理标志")
    private String processed;

    @ExcelProperty("处理时间")
    private String processedDate;

    @ExcelProperty("处理结果")
    private String respMsg;

    @ExcelIgnore
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private Map<String, Object> params;
    public Map<String, Object> getParams() {
        if (params == null)
        {
            params = new HashMap<>();
        }
        return params;
    }
    public void setParams(Map<String, Object> params)
    {
        this.params = params;
    }
}
